﻿using Model.Interfaces;
using Model.NotifyingCollections;

namespace Model.ModelClasses
{
    public class Country : AbstractModel, ICountry
    {
        public NotifyingModelList Towns
        { get; set; }

//        public event EventHandler<StringEventArgs> AddTownEvent;
//        public event EventHandler<StringEventArgs> RemoveTownEvent;

        public Country()
        {
            Towns = new NotifyingModelList();
        }

        public Country(string name, NotifyingModelList towns)
        {
            Towns = towns;
            Name = name;
        }

        public string Name
        { get; set; }
        public override string ToString()
        {
            return Name;
        }
    }
}
